document.onkeydown = function () {
    var e = window.event || arguments[0];
    if (e.keyCode == '123'){
        alert("爱你")
        return false;
    }
}

document.oncontextmenu = function (){
    alert("爱你")
    return false;
}